#include <bits/stdc++.h>
using namespace std;
bool div3(int x)
{
    if(x%3 == 0)
        return true;
    else
        return false;
}
int main() {
    vector<int> number(1000);
    generate(number.begin(),number.end(),rand);
    int count = count_if(number.begin(),number.end(),[] (int n){return n%3 == 0;});
    cout<<count<<"\n";
    return 0;
}